package cn.kpi.service.usualassessment;

import java.util.List;
import java.util.Map;

import cn.kpi.entity.usualassessment.*;
import org.apache.ibatis.annotations.Param;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;

public interface IUserUATZpService {
public int InsertUserUATZp(UserUATZpSummaryEntity entity,Long userid,Long templateid,Map<Long,Integer> map)throws Exception;
public int UpdateUserUATZp(UserUATZpSummaryEntity entity,Long userid,Long templateid,Map<Long,Integer> map)throws Exception;

//public int InsertUserUATZpAtt(UserUATZpSummaryEntity entity,Long userid,Long templateid,Map<Long,Integer> map,UserUATZpAtt entityatt)throws Exception;
//public int UpdateUserUATZpAtt(UserUATZpSummaryEntity entity,Long userid,Long templateid,Map<Long,Integer> map,UserUATZpAtt entityatt)throws Exception;

public int InsertUserUATZpAtt(UserUATZpSummaryEntity entity,Long userid,Long templateid,Map<Long,Float> map,UserUATZpAtt entityatt)throws Exception;
public int UpdateUserUATZpAtt(UserUATZpSummaryEntity entity,Long userid,Long templateid,Map<Long,Float> map,UserUATZpAtt entityatt)throws Exception;

public List<UserUATZpDetailEntity> GetUserUATZpDetailList(Long usasszpid,Long userid)throws Exception;
public UserUATZpSummaryEntity GetUserUATZpSummary(Long userid,Long templateid,int year,int quarter)throws Exception;

public List<UserUATZpSummaryEntity> GetUserUATZpSummaryList(Long userid,String where)throws Exception;
public List<UserUATZpSummaryEntity> GetUserUATZpSummaryListTssx(Long userid,String where,int year,int quarter)throws Exception;
public int GetUserUATZpSummaryListCount(Long userid,String where)throws Exception;

public List<UserUATZpSummaryEntity> GetUserUATZpSummaryListByWhere(String where)throws Exception;
public List<UserUATZpSummaryEntity> GetUserUATZpSummaryListByWhereTssx(String where,int year,int quarter)throws Exception;
public int GetUserUATZpSummaryListCountByWhere(String where)throws Exception;

public int DeleteUATZp(Long usasszpid,Long userid)throws Exception;
public int DeleteUATZpAtt(Long usasszpid,Long userid)throws Exception;

public UserUATZpSummaryEntity GetUserUATZpSummaryForMzpd(Long userid,int year,int quarter)throws Exception;
public List<UserUATZpDetailEntity> GetZpDetailListRowSpan(Long usasszpid)throws Exception;
public UserUATZpSummaryEntity GetUserUATZpSummaryById(Long usasszpid)throws Exception;

public int UpdateStatus(Long usasszpid,Long userid,int year,int quarter,int status)throws Exception;
public int UpdateStatusAtt(Long usasszpid,Long userid,int year,int quarter,int status)throws Exception;


public List<UserUATZpSummaryEntity> GetUserZpListProcess(String where,int year,int quarter,int beginrow,int endrow)throws Exception;
    public List<UserUATZpSummaryEntity> GetOldUserZpListProcess(String where,int year,int quarter,int beginrow,int endrow)throws Exception;
public int GetUserZpListProcessCount(String where)throws Exception;
    public int GetOldUserZpListProcessCount(String where)throws Exception;

public UserUATZpAtt GetUserUATZpAtt(Long usasszpid)throws Exception;
public UserUATZpAtt GetUserUATZpAttByWhere(String where)throws Exception;
    public List<PSKH> pskhResult(int year, int quarter);
    public List<NewPSKH> newpskhResult(int year, int quarter);
    public  List<Map> bcjke(int year, int quarter);
    public List<PSKH> bdjg(int year, int quarter);

    public List<UserCount> getUserCount();

    public int addOpinion(PSKHOpinion pskhOpinion);

    public int updateOpinion(PSKHOpinion pskhOpinion);

    public PSKHOpinion getOpinion(int year, int quarter);


    public List<DYStatistics> getDYList(int year,int quarter,int dw)  throws Exception;;

    public   int addBDDC(List<BDDCOpinion> list,int year,int quarter);

    public  List<BDDCOpinion> getBDDC(int year,int quarter);
}
